package cn.com.utt.unms.pojo;

public class Group {

	private Long id;
	private String name;
	private Long pId;
	private String remark;
	private Byte hasNetwork;//0 没有局点 1 有局点
	private Byte type; // 0 是分组 1 是局点

	public Group() {
		this.type = (byte)0;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Byte getType() {
		return type;
	}

	public void setType(Byte type) {
		this.type = type;
	}

	public Long getpId() {
		return pId;
	}

	public void setpId(Long pId) {
		this.pId = pId;
	}

	public Byte getHasNetwork() {
		return hasNetwork;
	}

	public void setHasNetwork(Byte hasNetwork) {
		this.hasNetwork = hasNetwork;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Override
    public boolean equals(Object o) {
		Group group = (Group)o;
		return id.equals(group.getId());
    }

}
